package cn.cs.fallback;

import cn.cs.client.AccountDetailClient;
import cn.cs.client.CsPersonClient;
import cn.cs.pojo.AccountDetail;
import cn.cs.pojo.CsPerson;
import cn.cs.pojo.CsRoleUser;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


/**
 * 类似于try catch中的catch块中的内容，即发生错误时，处理的过程
 * 是用来发生熔断时的顶包组件,因此也必须实现接口
 * 异常时做一些处理，给用户一个交代
 * */
@Component
public class CsPersonFallBack implements CsPersonClient {



    @Override
    public CsPerson findPersonByName(String username) {
        return null;
    }

    @Override
    public CsPerson findPersonById(String id) {
        return null;
    }

    @Override
    public CsPerson getCsPersonById(String id) throws Exception {
        return null;
    }

    @Override
    public CsPerson getPersonById(String id) throws Exception {
        return null;
    }

    @Override
    public List<CsPerson> getCsPersonListByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getCsPersonCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer addCsPerson(CsPerson csPerson) throws Exception {
        return null;
    }

    @Override
    public Integer modifyCsPerson(CsPerson csPerson) throws Exception {
        return null;
    }

    @Override
    public Integer deleteCsPersonById(String id) throws Exception {
        return null;
    }

    @Override
    public Integer insertPerSonRoleBatch(List<CsRoleUser> list, String id) {
        return null;
    }
}
